import JSEncrypt from 'jsencrypt';

export const encrypt = (publicKey, content) => {
    const encryptor = new JSEncrypt();
    encryptor.setPublicKey(publicKey);
    return encryptor.encrypt(content);
};

export default {
    encrypt
};